<?php

/* Controleur "principal" */
define('SQL_DSN', 'mysql:host=localhost;dbname=commerce');
define('SQL_USERNAME', 'root');
define('SQL_PASSWORD', 'root');

class Controller
{
	protected $_bdd;
	
	public function __construct() {
		try {
			$this->_bdd = new PDO(SQL_DSN, SQL_USERNAME, SQL_PASSWORD);
		}
		catch(Exception $e) {
			echo 'Erreur de connexion à la BDD'.$e;
			exit;
		}
	}
}

?>
